package com.gewe.wxChat.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gewe.wxChat.model.entity.WxUser;
import com.gewe.wxChat.service.WxuserService;
import com.gewe.wxChat.mapper.WxUserMapper;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;

/**
* @author 86182
* @description 针对表【wxuser(微信用户信息表)】的数据库操作Service实现
* @createDate 2024-10-13 17:46:23
*/
@Service
public class WxuserServiceImpl extends ServiceImpl<WxUserMapper, WxUser>
    implements WxuserService{

    @Override
    public void updaetByWxId(WxUser newWxuser) {
        if(StringUtils.isNotBlank(newWxuser.getWxId())){
            this.baseMapper.updateByWxId(newWxuser);
        }
    }
}




